import 'package:json_annotation/json_annotation.dart';

part 'bt_goods.g.dart';

@JsonSerializable()
class BtGoods {
  final String goodsId;
  final String code;
  final String icon;
  final String type;
  final int subType;
  final String? tags;
  final double discount;
  final double originalPrice;
  final double price;
  final int exchangeCoin;
  final double originalPriceRupee;
  final double priceRupee;
  final double localPaymentPriceRupee;
  final bool isPromotion;
  final int localPayOriginalPrice;
  final int localPayPrice;

  const BtGoods({
    required this.goodsId,
    required this.code,
    required this.icon,
    required this.type,
    required this.subType,
    required this.tags,
    required this.discount,
    required this.originalPrice,
    required this.price,
    required this.exchangeCoin,
    required this.originalPriceRupee,
    required this.priceRupee,
    required this.localPaymentPriceRupee,
    required this.isPromotion,
    required this.localPayOriginalPrice,
    required this.localPayPrice,
  });

  factory BtGoods.fromJson(Map<String, dynamic> json) => _$BtGoodsFromJson(json);

  Map<String, dynamic> toJson() => _$BtGoodsToJson(this);
}
